module.exports = {
  lintOnSave: false, // 关闭语法检查
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8001/',
        ws: true,
        changeOrigin: true,
        /*
          把以/api开始是替换成空
          /api/getUserById --> /getUserById
        */
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}
